Syntax

DC INIT Image Index, Steps per Hour

Parameters

int: Image Index

Which texture will be used for the background. Use this number to call TEXTURE BACKDROP after DC INIT.

int: Steps per Day

How many keyframe steps in an hour - important! Too many steps per hour will slow down your game, not enough will make the weather less dynamic. You want about one step every 2 minutes of real time - so if a minute of real time is an hour of game time, try about 12 steps per day. Previous versions of Dark Clouds used steps per day - the maximum number of steps per hour is 10.

Returns

This command does not return a value.

Example Code

rem half-fill the sky with clouds:
dc set cloudy 0.5
rem set sky brightness to 1:
dc set brightness 1
rem set wind to 10 mph at 270 degrees:
dc set wind 3,270
rem init with texture number 1, and number of keyframes per hour:
dc init 1,10
rem show texture 1 as the backdrop:
texture backdrop 1

See also

DarkCLOUDS Commands Menu
Index